﻿using System;

namespace SharpSqlAnalyzer.nodes
{
	// Token: 0x02000308 RID: 776
	public class TLimitClause : TParseTreeNode
	{
		// Token: 0x06001B82 RID: 7042 RVA: 0x0032F52F File Offset: 0x0032D72F
		public void setSelectFetchFirstValue(TExpression e)
		{
			this.selectFetchFirstValue = e;
		}

		// Token: 0x06001B83 RID: 7043 RVA: 0x0032F538 File Offset: 0x0032D738
		public void setOffsetClause(TOffsetClause c)
		{
			this.OffsetClause = c;
		}

		// Token: 0x17000648 RID: 1608
		// (set) Token: 0x06001B84 RID: 7044 RVA: 0x0032F541 File Offset: 0x0032D741
		public virtual TOffsetClause OffsetClause
		{
			set
			{
				this.offset = value.SelectOffsetValue;
			}
		}

		// Token: 0x17000649 RID: 1609
		// (get) Token: 0x06001B86 RID: 7046 RVA: 0x0032F558 File Offset: 0x0032D758
		// (set) Token: 0x06001B85 RID: 7045 RVA: 0x0032F54F File Offset: 0x0032D74F
		public virtual TExpression SelectFetchFirstValue
		{
			get
			{
				return this.selectFetchFirstValue;
			}
			set
			{
				this.selectFetchFirstValue = value;
			}
		}

		// Token: 0x06001B87 RID: 7047 RVA: 0x0032F560 File Offset: 0x0032D760
		public override void init(object arg1, object arg2)
		{
			this.offset = (TExpression)arg1;
			this.row_count = (TExpression)arg2;
		}

		// Token: 0x1700064A RID: 1610
		// (get) Token: 0x06001B88 RID: 7048 RVA: 0x0032F57A File Offset: 0x0032D77A
		// (set) Token: 0x06001B89 RID: 7049 RVA: 0x0032F582 File Offset: 0x0032D782
		public virtual TExpression Offset
		{
			get
			{
				return this.offset;
			}
			set
			{
				this.offset = value;
			}
		}

		// Token: 0x1700064B RID: 1611
		// (get) Token: 0x06001B8A RID: 7050 RVA: 0x0032F58B File Offset: 0x0032D78B
		// (set) Token: 0x06001B8B RID: 7051 RVA: 0x0032F593 File Offset: 0x0032D793
		public virtual TExpression Row_count
		{
			get
			{
				return this.row_count;
			}
			set
			{
				this.row_count = value;
			}
		}

		// Token: 0x06001B8C RID: 7052 RVA: 0x0032F59C File Offset: 0x0032D79C
		public override void doParse(TCustomSqlStatement psql, ESqlClause plocation)
		{
		}

		// Token: 0x06001B8D RID: 7053 RVA: 0x0032F59E File Offset: 0x0032D79E
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06001B8E RID: 7054 RVA: 0x0032F5AE File Offset: 0x0032D7AE
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x040019F9 RID: 6649
		private TExpression offset;

		// Token: 0x040019FA RID: 6650
		private TExpression row_count;

		// Token: 0x040019FB RID: 6651
		private TExpression selectFetchFirstValue;
	}
}
